import request from '@/utils/request'

export default({
    //获取合成道具列表
    getHeChengList(){
        return request({
            url: `serviceucenter/compound/getAllCompounds`,
            method: 'get'
        })
    },
    //根据id获取信息  http://192.168.31.228:9100/
    getHeChengPropsById(id){
        return request({
            url: `serviceucenter/compound/getCompoundById/${id}`,
            method: 'get'
        })
    },

    //修改合成道具 /serviceucenter/props/updateProps
    updateHeChengProps(data){
        return request({
            url: `serviceucenter/compound/updateCompound`,
            method: 'post',
            data
        })
    },
    //添加合成道具
    addHeChengProps(data){
        return request({
            url: `serviceucenter/compound/addCompound`,
            method: 'post',
            data
        })
    },
    //删除合成道具 /serviceucenter/props/deleteProps
    deleteHeChengProps(id){
        return request({
            url: `serviceucenter/compound/deleteCompound/${id}`,
            method: 'delete'
        })
    },
    //获取所有的合成道具
    getHeChengProps(id){
        return request({
            url: `serviceucenter/props/getHeChengProps`,
            method: 'get'
        })
    },
})